﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SchoolLibrary.Entity
{
    public class Identity
    {
        public const long UNDEFINED_ID = 0;

        public const string SELECT_LAST_ID = "SELECT * FROM :tableName WHERE id = " +
            " (SELECT max(id) FROM :tableName)";

        public const string ID_COLUMN_NAME = "id";

        private long id;

        public long Id
        {
            get { return id; }
            set { id = value; }
        }     
    }
}
